package online.foxnull2.foxmall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import online.foxnull2.foxmall.product.entity.CategoryEntity;
import online.foxnull2.foxmall.product.utils.PageUtils;
import online.foxnull2.foxmall.product.vo.Catalog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author foxnull2
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils listWithTree();

    boolean ReRemoveByIds(List<Long> catIds);

    List<Long> getCatalogIdPath(Long attrGroupId);

    Boolean updateCascade(CategoryEntity category);

    Map<String, List<Catalog2Vo>> getJsonCatalog();

    List<CategoryEntity> getLv1Category();
}

